﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    assembly="JSC.Portal.Core" namespace="JSC.Portal.Entities">

	<class name="ModuleProperty" table="jsc_moduleproperty" lazy="false">

		<!-- start Base on every entity -->
		<id name="Id" column="modulepropertyid" unsaved-value="-1">
			<generator class="native">
				<param name="sequence">jsc_moduleproperty_modulepropertyid_seq</param>
			</generator>
		</id>

		<property name="Name" column="name" not-null="true"/>
		<property name="Description" column="description"/>
		<!-- end Base on every entity -->

		<property name="PropertyType" column="propertytype"/>
    <property name="IsRequired" column="isrequired"/>
    <many-to-one name="ModuleType" class="ModuleType" column="moduletypeid"  not-null="true" />
	</class>
</hibernate-mapping>